<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Tolist</title>
	</head>
	<body>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	
		<div id="app">
			<input type="text" id="" value="" />
			<button type="button" v-on:click="handleBtnclick" >提交</button>
			<ul>
				<li v-for="item in list">{{item}}</li>
			</ul>
		</div>
		<div id="app2">
			
		</div>

	<script type="text/javascript">
		var app=new Vue({
			el:'#app',
			data:{
				list:['第一课的内容','第二课的内容']
			},
			methods:{
				handleBtnclick:function(){
					alert('click')
				}
			}
		})
	</script>
	</body>
</html>
